#pragma once

#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QGroupBox>

class RenderWidget;

class GeometricTransformationWindow : public QWidget {
    Q_OBJECT

public:
    explicit GeometricTransformationWindow(QWidget *parent = nullptr);
    ~GeometricTransformationWindow() override = default;

private slots:
    void onApplyClicked();
    void onResetClicked();

private:
    RenderWidget *render_;       // 渲染控件

    // 控制面板
    QGroupBox   *ctrlGroup_;
    QLineEdit   *leA11_, *leA12_, *leA21_, *leA22_;
    QPushButton *btnApply_, *btnReset_;

    void setupUi();
};

